package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsQuestionInfo = "cms_question_info"

func init() {
	var r = &CmsQuestionInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsQuestionInfo struct {
	QuestionId   int    `json:"questionId" form:"questionId" column:"question_id" primary:"true" modify:"false"`
	QuestionName string `json:"questionName" form:"questionName" column:"question_name" modify:"true"`
	Subject      int    `json:"subject" form:"subject" column:"subject" modify:"true"`
	Grade        int    `json:"grade" form:"grade" column:"grade" modify:"true"`
	ShowType     int    `json:"showType" form:"showType" column:"show_type" modify:"true"`
	OptionCount  int    `json:"optionCount" form:"optionCount" column:"option_count" modify:"true"`
	Difficulty   int    `json:"difficulty" form:"difficulty" column:"difficulty" modify:"true"`
	ParentId     int    `json:"parentId" form:"parentId" column:"parent_id" modify:"true"`
	Stem         string `json:"stem" form:"stem" column:"stem" modify:"true"`
	Answer       string `column:"answer" modify:"true" json:"answer" form:"answer"`
	Explain      string `json:"explain" form:"explain" column:"explain" modify:"true"`
	Simple       string `json:"simple" form:"simple" column:"simple" modify:"true"`
	Status       int    `json:"status" form:"status" column:"status" modify:"true"`
	CreateTime   string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime   string `column:"update_time" modify:"false" json:"updateTime" form:"updateTime"`
}

func (r *CmsQuestionInfo) Name() string {
	return RecordNameCmsQuestionInfo
}
